package com.food.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.food.pojo.CaloriesFoodUser;
import com.food.pojo.CaloriesRecordsUser;
import com.food.pojo.CaloriesRecordsUserDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beixiang
 * @version 1.0
 * @description TODO
 * @date 2023/3/28 12:40
 */
@Repository
public interface CaloriesRecordsUserMapper extends BaseMapper<CaloriesRecordsUser> {

    Integer insertCaloriesRecordsUser(CaloriesRecordsUser caloriesRecordsUser);

    List<CaloriesRecordsUser> getUserCaloriesToday(@Param("userId") Integer userId, @Param("type") String type);
}
